package com.cjm.one.goods.client.fallback;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cjm.one.common.result.Result;
import com.cjm.one.goods.client.GoodsSKuClient;
import com.cjm.one.model.goods.dto.StockDeductionDTO;
import com.cjm.one.model.goods.dto.StockRevertDTO;
import com.cjm.one.model.goods.entity.GoodsSku;
import com.cjm.one.model.goods.enums.SortStrategyEnum;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class GoodsSKuClientFallback implements GoodsSKuClient {
    @Override
    public Result<Page<GoodsSku>> pageList(Long current, Long size, Long categoryId, String name, SortStrategyEnum strategyEnum) {
        return Result.notAvailable();
    }

    @Override
    public Result<Page<GoodsSku>> pageListByCategoryId(Long categoryId, Long current, Long size) {
        return Result.notAvailable();
    }

    @Override
    public Result<Page<GoodsSku>> getSkuCoupon(Long[] ids) {
        return Result.notAvailable();
    }

    @Override
    public Result<Boolean> deductionStock(List<StockDeductionDTO> deductionList, String fromSource) {
        return Result.notAvailable();
    }

    @Override
    public Result<Boolean> revertStock(List<StockRevertDTO> stockRevertDTOS, String fromSource) {
        return Result.notAvailable();
    }
}
